package com.yq.service.impl;

import com.google.common.collect.Maps;
import com.yq.service.annotation.AzerothAutoService;
import com.yq.service.dao.BaseMapper;
import com.yq.service.dao.CodStatusMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.yq.core.entity.CodStatusEntity;
import com.yq.core.service.CodStatusService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;


/**
 * 信  息: [yinquan] [2017-05-04] [1.0]
 * 描  述: Service 实现
 */
@AzerothAutoService("codCodeService")
public class CodStatusServiceImpl extends BaseServiceImpl<CodStatusEntity, String> implements CodStatusService {

    private static Logger logger = LoggerFactory.getLogger(CodStatusServiceImpl.class);

    @Autowired
    private CodStatusMapper codCodeMapper;

    public BaseMapper<CodStatusEntity, String> getBaseMapper() {
        return codCodeMapper;
    }

    @Override
    public List<Map<String, Object>> getCodeList(String method) {
        Map<String, Object> parameters = Maps.newHashMap();
        parameters.put("method", method);
        return codCodeMapper.getCodeList(parameters);
    }
}